package com.hc.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * @ClassName: InsertLlistenerController
 * @Description:
 * @date:2021/11/20 11:37
 * @author: zhitb
 * @Version: 1.0
 **/
@Slf4j
@Controller
@RequestMapping("/insertLlistener")
public class InsertLlistenerController {
    /**
     * 批量添加用户信息
     * @return
     */
    @PostMapping("/userListener")
    public ModelAndView userListener(ModelAndView mav){
        //TODO：此处功能有Bug
//        EasyExcel.read("E:\\project\\projshow\\data\\users.xlsx", User.class, new UserExcelListener())
//                .sheet()
//                .doRead();

        mav.setViewName("insertLlistener/index");
        return  mav;
    }
}
